package com.qyhl.webtv.module_microvideo.shortvideo.classic.detail.comment;

import com.qyhl.webtv.commonlib.entity.microvideo.ClassicCommentBean;

import java.util.List;

public class ClassicCommentPresenter implements ClassicCommentContract.ClassicCommentPresenter {
    private ClassicCommentModel mModel;
    private ClassicCommentContract.ClassicCommentView mView;

    ClassicCommentPresenter(ClassicCommentContract.ClassicCommentView mView) {
        this.mView = mView;
        this.mModel = new ClassicCommentModel(this);
    }

    @Override
    public void getList(String proId, String page) {
        mModel.getList(proId, page);
    }

    @Override
    public void setList(List<ClassicCommentBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
